package com.lucy.property.entity;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 * 单元房产信息
 */

@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "unit_house")
@ApiModel(value = "单元房产信息")
public class UnitHouse extends BaseEntity implements Serializable {


    @ApiModelProperty("楼栋单元ID")
    @Column(name = "building_unit_id")
    String buildingUnitId;


    @ApiModelProperty("单元名称")
    @Column(name = "building_unit_name")
    String buildingUnitName;

    @ApiModelProperty("房产编码")
    @Column(name = "house_code")
    private String houseCode;

    @ApiModelProperty("所在层")
    @Column(name = "floor")
    Integer floor;

    @ApiModelProperty("房产面积")
    @Column(name = "area")
    Double area;


    @ApiModelProperty("居住人数")
    @Column(name = "live_num")
    Integer liveNum;

    @ApiModelProperty("房产状态")
    @Column(name = "house_status")
    String houseStatus;

    @ApiModelProperty("备注信息")
    @Column(name = "remark")
    String remark;
}
